package com.thb.pay.manage.comm.shiro.config;

import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Slf4j
@Data
@Component
@Configuration
@ConfigurationProperties(prefix = "shiro.config")
public class ShiroConstantConfig {

    /**
     * 域名
     */
    private String domain;
    /**
     * 登入地址
     */
    private String loginUrl;

    /**
     * 成功地址
     */
    private String successUrl;

    /**
     * 未授权地址
     */
    private String unauthorizedUrl;

    /**
     * 授权地址
     */
    private List<Map<String, String>> permissionUrls;
}
